import { request } from '@/utils/request';
import type { TenantResult } from '@/api/house/model/tenantModel';

const Api = {
  Query: '/house.tenant/queryTenant',
  Save: '/house.tenant/saveTenant',
};

export function getTenant() {
  return request.get<TenantResult>({
    url: Api.Query,
  });
}

export function saveTenant(data: any) {
  return request.post({
    url: Api.Save,
    params: data,
  });
}
